home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16.lha / Python-1.6 / Lib / Python1.6 / dbhash.py < prev    next >
Encoding:
Python Source  |  1999-05-04  |  220 b   |  9 lines

  1. """Provide a (g)dbm-compatible interface to bsdhash.hashopen."""
  2.  
  3. import bsddb
  4.  
  5. error = bsddb.error                     # Exported for anydbm
  6.  
  7. def open(file, flag, mode=0666):
  8.     return bsddb.hashopen(file, flag, mode)
  9.